<?php

use Illuminate\Support\Facades\Route;

// 测试用户接口
Route::get('test', 'TestController@test');

// 用户登录相关
Route::group([], function () {

    // 用户登录
    Route::post('auth/v1/token', 'UserController@userLogin');
});

Route::group(['middleware' => ['auth.jwt']], function () {
    Route::group(['prefix' => 'auth'], function () {

        // 用户信息
        Route::get('/v1/me', 'UserController@getUser');

        // 用户退出登录
        Route::post('/login-out', 'UserController@userLoginOut');
    });

});

